import { F } from '../utils/http'
const { GET, POST } = F('invoice/')
class InvoiceApi {
  constructor() {}
  search = (req) => GET('search', req)
  update = (req) => POST('update', req)
  find = (id) => GET('find', { id })
  remvoe = (id) => GET('remove', { id })
}
export default new InvoiceApi()
